Skip to content

opencode config: seat Gemini 4 Hydrogen, retire Flash seats (Drew 2026-11-12) - #9013

Merged
dezren39 merged 1 commit into
mainfrom
fleet/gemini-hydrogen-2026-11-12
Nov 12, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fleet/gemini-hydrogen-2026-11-12

Conversation

@dezren39

@dezren39 dezren39 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Drew's order 2026-11-12 (amended 14:17 CST): add Google Gemini 4 Hydrogen to the _antigravity provider and replace every Gemini Flash use with Hydrogen at the appropriate effort.

Provider addition (sync-models, the sanctioned route — code#4544)

  • bin/sync-models.policy.json: new family gemini-hydrogen (^gemini-(\d+(?:\.\d+)?)-hydrogen$), added to _antigravity's keep list — without this, the next sync would have removed the model as off-policy.
  • bin/sync-models.mjs:
    • Effort grouping learns -xhigh (the live catalog spells the tier gemini-4-hydrogen-xhigh) and -extra (Antigravity's "Extra" label for the same tier), normalized to the fleet's xhigh variant name; the display-name strip learns (XHigh) / (Extra).
    • Discovery repair: the agy models fallback split columns on multi-space only, but current agy output is tab-separated — discovery silently returned nothing whenever the language server was down, which is why the runtime overlay had not refreshed since 2026-11-07. Split now accepts a tab or multi-space.
  • bin/sync-models.test.mjs: the --dry-run probe now carries a present-but-empty _antigravity section. With working discovery, the old probe (empty provider) is a sync-models: renamed provider catalog orphaned in runtime overlay; sync reports up-to-date while section key is stale #7333 absent-provider skip and exits 2 on any machine where a catalog is discoverable — it was testing the environment, not the dry-run contract. Assertions unchanged.

Applied live ahead of this merge with the patched tool (the overlay is machine state, not repo state): + _antigravity/gemini-4-hydrogen — "Gemini 4 Hydrogen (direct)", limit 1048576/65536, variants low/medium/high/xhigh (reasoning_effort options, mirroring gemini-4-argon). Verified in the running server's catalog read (GET /api/provider on 127.0.0.1:13420): _antigravity serves exactly the five policy models, hydrogen status: active, enabled: true, tools-capable. No test completion was sent (no quota probes). The same sync applied the standing keep-newest-per-family policy to 10 stale overlay entries (gemini-2.5/3.x leftovers, gemini-3.8-flash-tiered, gpt-oss-120b) — none seated anywhere.

Durability note: the overlay entry is live now and survives the daily timer (the deployed old sync discovers nothing while the language server is down — the same bug, acting as a shield). It becomes permanent when the nix deploy carries this branch's bin/sync-models.mjs + policy through the normal switch path. If the Antigravity language server happens to run a sync before that deploy, the old policy would drop hydrogen from the overlay; the first post-deploy sync restores it.

Seat swaps (.opencode/opencode.jsonc)

Seat Before After
Flash plan route gemini-flash-plan → _antigravity/gemini-3.8-flash, variants clamp xhigh→high, max→high renamed gemini-hydrogen-plan → _antigravity/gemini-4-hydrogen, clamp max→xhigh only (native xhigh: AA v5.0.1 II 54)
workhorse-weighted member _antigravity/gemini-3.8-flash#medium, w10 _antigravity/gemini-4-hydrogen#low, w10 (Drew 14:17: II 27, $0.29/task, TTFT 5.81s — cheapest/fastest in pool, minimal draw on the shared Antigravity Gemini weekly; Luna #high anchors quality)
summit (ordered) fable#medium → opus#high → argon#high → wonder#xhigh → sol#xhigh new direct leaf _antigravity/gemini-4-hydrogen#high inserted after argon-plan#high (Drew 14:17: II 51 ≈ Opus #high 51.8, edges Argon #high 50.4, at $1.87/task and ~6 min/task vs Argon's $9.95 / ~30 min — the fast execution seat, ahead of the Meta/OpenAI reserves)
speed pool opencode-route/gemini-flash-plan#high opencode-route/gemini-hydrogen-plan#high — serves Hydrogen #high (II 51, $1.87/task) via the renamed route

Route rename audit: git grep gemini-flash-plan across the whole repo found references only in opencode.jsonc (all updated, including comment pointers in sonnet-plan / opus-plan / specialist / workhorse-weighted / speed) and one frozen 2026-10-25 design doc (doc/2026-10-25T21-11-31Z_design_route-pools/), deliberately left as a historical record. The one remaining in-config mention of the old id is the route's own dated rename note. AA figures in the dated seat comments are AA v5.0.1 (Hydrogen: low II 27 $0.29 · medium II 41 $0.80 · high II 51 $1.87 · xhigh II 54 $3.16; Flash high was II 30.8).

Out of scope, untouched: DeepSeek/GLM/MiMo "flash" models and routes (other vendors), the sync-maintained google/ catalog, the Flash catalog entries themselves (catalog rule — the provider keeps listing the model; no route seats it).

Verification

  • opencode-config-guard suite on this branch: 137/137 tests pass (metered-providers, go-seating, route-rules, provider-catalog-sync, provider-catalog-snapshot, sync-models), and both canonical checks pass (check-opencode-metered-providers, check-opencode-route-rules on .opencode/opencode.jsonc).
  • No service restarted; config deploys via the normal path / coordinated switch.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…6-11-12)

Provider: sync-models policy gains the gemini-hydrogen family for _antigravity; sync-models learns the -xhigh effort suffix (and the -extra spelling Antigravity uses for the same tier, normalized to xhigh), and its agy-CLI discovery fallback parses the current tab-separated agy models output (the multi-space split silently discovered nothing, which is why the runtime overlay had not refreshed since 2026-11-07). The --dry-run probe test now carries the target provider section so it tests the dry-run contract rather than whether a catalog is discoverable from the machine (#7333 absent-skip otherwise exits 2).

Seats: gemini-flash-plan renamed gemini-hydrogen-plan, target _antigravity/gemini-4-hydrogen with max -> xhigh clamp (native xhigh, AA v5.0.1 II 54); workhorse-weighted member becomes gemini-4-hydrogen#low w10 (Drew: II 27, $0.29/task, TTFT 5.81s, minimal Antigravity Gemini weekly draw); summit gains a direct gemini-4-hydrogen#high leaf after argon-plan#high (II 51, $1.87/task, ~6 min/task vs Argon $9.95 / ~30 min); speed pool follows the renamed route at #high. Gemini 3.8 Flash seats are gone (catalog entry remains per the catalog rule). DeepSeek/GLM/MiMo flash routes untouched.

Applied live ahead of merge via the patched sync-models: overlay gained gemini-4-hydrogen (variants low/medium/high/xhigh) and the running server catalog read verifies it active; the same sync applied the standing keep-newest-per-family policy to 10 stale overlay entries. Guard: opencode-config-guard suite green (137 tests, both canonical checks).
@dezren39
dezren39 requested a review from a team as a code owner November 12, 2026 20:24
@dezren39
dezren39 merged commit 6a7843c into main Nov 12, 2026
10 checks passed
@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9d0281f1-299a-406b-992a-ee800f93fa1e
Commits

Reviewing files that changed from the base of the PR and between 5887546 and 826b628.

Files selected for processing: 4

  • .opencode/opencode.jsonc
  • bin/sync-models.mjs
  • bin/sync-models.policy.json
  • bin/sync-models.test.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 deleted the fleet/gemini-hydrogen-2026-11-12 branch November 12, 2026 20:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T20:26:09.094671Z 826b628 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant